package cre.spring.mvc.custom;

import org.springframework.beans.propertyeditors.CustomDateEditor;

import java.text.DateFormat;

/**
 * @Author penglai
 * @Date 2017/4/26.
 */
public class DemoDateEditor2 extends CustomDateEditor {
    public DemoDateEditor2(DateFormat dateFormat, boolean allowEmpty) {
        super(dateFormat, allowEmpty);
    }

    @Override
    public void setAsText(String text) throws IllegalArgumentException {
        super.setAsText(text);
        System.out.println("in DemoDateEditor2" + text);
    }
}
